import axios from "axios";
const incan = axios.create({
    baseURL: 'http://www.ysqorz.top:8888/api/private/v1/',
    timeout: 5000,
});
incan.interceptors.request.use(config => {
    config.headers.Authorization = window.localStorage.getItem('token')
    return config
}, err => {
    return Promise.reject(err);
})
incan.interceptors.response.use(res => {
    return res
}, err => {
    return Promise.reject(err);

})
export default incan